package com.big.app.controller;

import com.big.app.service.SmsLogService;
import com.big.app.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "验证码",tags = "验证码")
@RequestMapping("/api/sms/")
public class SmsLogController {
    @Autowired
    private SmsLogService service;
    //发送登录验证码
    @GetMapping("loginCode.do")
    R sendLoginCode(String phone) {
        return service.sendLoginCode(phone);
    }
    //查询发送记录
    @GetMapping("queryAll.do")
    R queryAll(String phone) {
        return service.queryAll(phone);
    }
}
